package com.dong.jsr330;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * description
 *
 * @author Administrator 2021/09/03 16:22
 */
@Configuration
public class MyConfiguration {

    @Bean
    public MyBean myBean(){
        return new MyBean();
    }

    @Bean
    public ProviderBean providerBean(){
        return new ProviderBean();
    }

    @Bean("inject1")
    public MyInjectBean myInjectBean(){
        return new MyInjectBean();
    }

    @Bean("inject2")
    public MyInjectBean myInjectBean1(){
        return new MyInjectBean();
    }
}
